//
//  MXPickerView.h
//  YouOu
//
//  Created by weihong xuan on 2016/3/7.
//  Copyright © 2016年 weihong xuan. All rights reserved.
//


#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, DataType) {
    Sex,
    Age,
    Area,
    Result
};

typedef void(^reloadBlock)(NSInteger hierarchy,NSString *areaId,NSInteger row);
typedef void(^otherBlcok)(NSString *otherText);
typedef void(^resultBlock)(NSString *otherText,NSString *otherId);
typedef void(^addressBlock)(NSString *province,NSString *city,NSString *town);

@interface MXPickerView : UIView

@property (nonatomic, strong) NSMutableArray    *arrProvince;
@property (nonatomic, strong) UILabel           *lblTitle;
@property (nonatomic, assign) DataType          dataType;
@property (nonatomic, strong) NSMutableArray    *arrArea;
@property (nonatomic, strong) NSArray           *arrResult;
@property (nonatomic, strong) NSMutableArray    *arrCity;
@property (nonatomic, copy)   reloadBlock        reloadBlock;
@property (nonatomic, copy)   addressBlock       addressBlock;
@property (nonatomic, copy)   otherBlcok         otherBlock;
@property (nonatomic, copy)   resultBlock        resultBlock;

- (void)reloadData;
- (void)showAnimation;
@end
